package class001_010;

/**
 * ClassName: Code03_BinarySystem
 * Package: class001_010
 * Description:
 *
 * @Author s
 * @Create 2025/7/24 15:56
 * @Version 1.0
 */
public class Code03_BinarySystem {
    public static void printBinary(int num) {
        for (int i = 31; i >= 0 ; i--) {
            System.out.print((num & (1 << i)) == 0 ? "0" : "1");
        }
        System.out.println();
    }

    public static void main(String[] args) {
        System.out.println(19);
        printBinary(19);
    }
}
